home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Acao / catinvaders.swf / scripts / frame_111 / PlaceObject2_148_127 / CLIPACTIONRECORD onClipEvent(load).as < prev   
Encoding:
Text File  |  2007-03-20  |  658 b   |  30 lines

  1. onClipEvent(load){
  2.    function getHighScoreFromURL()
  3.    {
  4.       this.hsLoaded = 1;
  5.       if(this._url == _root.Functions.validURL)
  6.       {
  7.          trace("loading from url ");
  8.          loadVariables("http://www.cedalion.co.uk/loki/get_high_score.asp",_root.highScoreBox);
  9.       }
  10.       else
  11.       {
  12.          trace("setting endOfGame to 3");
  13.          tellTarget("/endOfGame")
  14.          {
  15.             gotoAndStop(3);
  16.          }
  17.          if(0 >= score)
  18.          {
  19.             score = 0;
  20.          }
  21.       }
  22.    }
  23.    function setHighScore(sc)
  24.    {
  25.       score = sc;
  26.       _root.Functions.highScore = score;
  27.    }
  28.    this.hsLoaded = 0;
  29. }
  30.